package java68_8;

public class SoundCard implements PCI {
    private String brand;
    private int price;
    private int gonglv;

    public SoundCard(String brand, int price, int gonglv) {
        this.brand = brand;
        this.price = price;
        this.gonglv = gonglv;
    }

    public void show(){
        System.out.println(this);
    }

    public void play(){
        System.out.println("播放声音");
    }

    @Override
    public String toString() {
        return "这是一个声卡,品牌是:"+brand+",价格是"+price+"元,功率是"+gonglv;
    }

    @Override
    public void start() {
        System.out.println("开始启动声卡...滴滴滴");
    }

    @Override
    public void stop() {
        System.out.println("声卡停止工作!!!!!");
    }
}
